const {merge} = require('webpack-merge');
const base = require('./webpack.base');
const webpack = require('webpack');

module.exports = merge(base, {
    mode: 'development',
    devServer: {
        disableHostCheck: true,
        contentBase: './',
        hot: true,
        inline: true,
        port: 8081,
    },
    module: {
        rules: [{
            test: /\.scss$/,
            use: ['style-loader', 'css-loader', 'postcss-loader', 'sass-loader']
        },
            {
                test: /\.css$/,
                use: [
                    'css-loader',
                    'postcss-loader',
                ],
            },
        ]
    },
    plugins: [
        new webpack.HotModuleReplacementPlugin(),
    ]
})